package com.zenni.core;

import org.openqa.selenium.WebDriver;

import java.text.SimpleDateFormat;
import java.util.Date;

/**
 * Created by douglasj on 2/15/16.
 */
public class GlobalFunction {
    public void loadUrl(WebDriver driver, String requestUrl){
        driver.get(requestUrl);
    }
    public static String getCurrentTimeStamp() {
        SimpleDateFormat sdfDate = new SimpleDateFormat("yyyyMMMddHHmms");//dd/MM/yyyy
        Date now = new Date();
        String strDate = sdfDate.format(now);
        return strDate;
    }
}
